package com.example.roadeyeserver.controller;

import com.example.roadeyeserver.entity.vo.CarTypeVO;
import com.example.roadeyeserver.enums.CarTypeEnum;
import com.example.roadeyeserver.result.Result;
import com.example.roadeyeserver.util.ResultUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("carType")
public class CarTypeController {

    @PostMapping("getAllCarType")
    public Result<List<CarTypeVO>> getAllCarType() {
        return ResultUtil.success(CarTypeEnum.getAllCarType());
    }

}
